import axios from "axios";
const url = process.env.NODE_ENV === "production" ? "/api" : "/api";

export const createUserApi = (param) => {
  return axios.post(url + "/users", param);
};

export const getUserListApi = (param) => {
  return axios.get(url + "/users", {
    params: param,
    // withCredentials: true,
  });
};

// //导出文件
// export const exportFile = (type, param) => {
//   return axios.post(url + "/applyInfo/export/" + type, param, {
//     responseType: "blob",
//   });
// };
